In Acts 3-4, Caliban forms an alliance with the drunken Trinculo and Stephano to overthrow Prospero, while Ariel works to disrupt their plot and reunite the other characters; Prospero and Miranda witness the marriage of Ferdinand and Miranda through a magical masque. In Act 5, Prospero decides to forgive his enemies and end his magic, believing he has rectified past wrongs and is ready to return to Milan as its rightful Duke through non-magical means of governance.