Elector Frederick's decision in 1619 to accept the throne of Bohemia triggered a war with the powerful neighbouring Habsburg dynasty of Austria to the southwest in Vienna, which James attempted to end through a proposed alliance with the Kingdom of Spain.