This depends on the country. See related questions or re-ask
your question specifying the country.
United States: Abraham Lincoln was the President of the United States in 1864.
Abraham Lincoln was the sixteenth President of the United States, serving from 1861 March 4 to 1865 April 15 when he was assassinated.