His father died before him , so he became king in 1377 . Towards the end of his reign , Richard became a tyrant , and was removed from the throne in 1399 . He ruled from 1377 until he was deposed in 1399 .