 The church was built in the 1620s-1630s by King Felipe III along with a hostel and hospital for the Portuguese migrants who moved to Madrid when Portugal was under Spanish rule.For this reason it was originally called "Hospital de los Portugueses".When Portugal gained independence, Phillip IV's Queen, Mariana de Austria, dedicated the refuge to German immigrants, and changed names.