Pepys was hired as the Clerk of the Acts to the Navy Board, where he would take on such duties as justice of the peace; supervisor of naval supply distribution; and appointee to the Tangier Committee. Pepys moved up the ranks in the Royal Navy, and was on hand to assist with the two great disasters of the time, the Great Plague of 1665 and the Great Fire of London in 1666.