When did William I become King of England?

William I, known as William the Conqueror, was king of England from 1066 to 1087.