What is a trench?

Its where the soldiers in WW1 fought in.. and it was surrounded by dead bodies and the smell was horrible and shootings and bombings and shellings happened and it was just so.. HORRIBLE!!