Prospero, having divined that his brother Antonio is on a nearby ship, has raised a tempest that causes the passengers to believe they are shipwrecked and marooned.
Prospero then explains that he tested Ferdinand, and betroths a willing Miranda to him.