In the Market Square stands the Gothic St. Mary's Basilica ("Kościół Mariacki"). It was rebuilt in the 14th-century and features the famous wooden altar (Altarpiece of Veit Stoss), the largest Gothic altarpiece in the world, carved by Veit Stoss. From the church's main tower a trumpet call ("hejnał mariacki"), is sounded every hour. The melody, which used to announce the opening and closing of city gates, ends unexpectedly in midstream. According to legend, the tune was played during the 13th-century Tatar invasion by a guard warning citizens against the attack. He was shot by an archer of the invading Tatar forces whilst playing, the bugle call breaking off at the moment he died. The story was recounted in a book published in 1928 called "The Trumpeter of Krakow", by Eric P. Kelly, which won a Newbery Award.