Goefu was the central military organization under the Ritsuryo System whose main missions were the personal protection of an emperor, the protection of Kyujo (place where an emperor lives), the night patrol in Kyoto and so on.
五衛府（ごえふ）とは、天皇の身辺警護をはじめ、宮城の警護、京内の夜間巡回などを主な任務とする律令制下の中央軍事組織をいう。