Question: who was president when yellowstone became a national park
Answer: Congress and signed into law by President Ulysses S. Grant on March 1 , 1872 .