It was played at the inaugurations of Presidents Martin Van Buren in 1837 and John Tyler in 1841, according to historians, and during the administration of President James Polk from 1845 to 1849 it became routinely played any time the president entered a room during public occasions.