Locking your toddler’s bedroom at night is not recommended for safety reasons. Namely, in the event of an emergency or a fire hazard, you want your child to be able to safely and easily exit their room. If your toddler is going through a sleep regression and you’re struggling to get them to stay in their bedroom at night, there are a few other techniques you can try. A gate or a dutch door is both a safer and less alienating option for your child. Motion alarms are another great tool to alert parents when a toddler has left their room in the middle of the night. Finally, establishing a solid bedtime routine with your baby to ensure that they are able to sleep soundly throughout the night is incredibly important and helpful.