Play opens with a storm and a shipwreck on the shores of an island. The survivors include Alonso, King of Naples with his brother Sebastian, his son Ferdinand, his counsellor Gonzalo, and Antonio, Duke of Milan. The island, apparently deserted, is inhabited by Prospero, Antonio's brother and former duke of Milan, and by his daughter Miranda. Through a flashback Prospero tells Miranda that 12 years earlier he was usurped of his dukedom by his brother and sent with her on the island. There they found Caliban, a deformed savage and owner of the island whom Prospero ensalved after he tried to rape Miranda, and Ariel, a spirit who had been imprisoned in a tree by the witch Sycorax, Caliban's mother, later freed by Prospero in exchange for his servitude. Miranda learns that Prospero has caused the storm with his magic in order to bring the usurper on the island and regain his dukedom. With the help of the invisible Ariel he blocks Sebastian's attempt to kill Alonso, and Caliban's plan to regain the island, and orchestrates the falling in love between Miranda and Ferdinand who eventually get married. In the end Prospero regains his dukedom and forgives his repentant prisoners. In his last speech he also renounces his magic which has been interpreted in metadramatic terms as Shakespeare's farewell to the stage.