Wanli District is a rural district on the rocky seacoast in northeastern New Taipei
City in northern Taiwan
. Wanli is a popular tourist destination and the site of the Cape Yeliu Miocene Formation which features distinctive hoodoo outcrops. The "Queen's Head" outcrop is a Taiwanese icon and serves as an informal trademark for the township.
Wanli was inhabited by Taiwanese aborigines before the era of European colonization. The area first came under the control of the Spanish, who were then ousted by the Dutch. The Ming dynasty loyalist Koxinga landed his troops at Wanli in 1661 to expel the Dutch from their northern strongholds while their principal fortress in Tainan
was under siege.
Wanli is bordered to the northwest by Jinshan District, to the northeast by the Pacific Ocean, to the east by the Anle and Qidu Districts of Keelung
. To the south is a short border with Xizhi District of New Taipei
City, and to the southwest is Taipei City's Shilin District. The topography of the area is marked by the rocky Pacific coastline and the forested, mountainous interior.