Aircraft lavatories (the word for toilets) are closed during pushback, taxi, takeoff, climb, descent, landing, arrival, and during turbulence. The only time they can be used is at cruise. This policy exists because those phases of flight are the most likely times for a crash to occur.