Question: what is the purpose of a gatehouse?
Answer: A gatehouse is an entry control point building, enclosing or accompanying a gateway for a town, religious house, castle, manor house, or other fortification building of importance.