A backrest locking mechanism is adapted for a backrest and a base of a child safety seat. The backrest is detachably connected to the base. The backrest locking mechanism comprises a locking pin, a locking component, and an operating component. The locking pin is disposed on the backrest. The…