This invention provides a locking device for coffee brewing apparatus of an automatic coffee maker. With this invention, when the top cover is closed, the brewing chamber can be locked and sealed at the same time automatically, while after coffee is brewed, the brewing chamber can be unlocked automatically, which provides easy operation that is convenient for users.