Rails are the horizontal pieces of a door frame or face frame while stiles are the vertical pieces of a door frame.