The school said Friday that Depp performed pirate songs and dances for the pupils during the visit with four other cast members on Wednesday.
The 47-year-old Depp is currently filming "Pirates of the Caribbean: On Stranger Tides" at Greenwich's Old Naval College, a 17th-century seafaring center.
Acting head teacher Jo Graham said pupils were thrilled at the visit, and have abandoned plans for a mutiny.