In Salzburg, Austria, Maria, a woman studying to become a nun, is sent from her convent to be the governess to seven children of a widowed naval commander, Captain Georg Ritter von Trapp. The children, initially hostile and mischievous, come to like her, and the woman finds herself falling in love with the captain. He was soon to be married to a baroness but marries Maria instead. Maria teaches the children singing. Meanwhile, the Nazis take power in Austria as part of the Anschluss, and want Captain von Trapp back in service. However, during a singing performance in a guarded theater, the whole family flees and walks over the mountains to Switzerland.