Who was the president in 1848?

This depends on the country/organization you are asking about. Please re-ask your question or see related questions.

United States: James Knox Polk
James Knox Polk was the 11th President of the United States from 1845 March 4 to 1849 March 4. His Vice President was George Mifflin Dallas.