Llanfaes (formerly also known as Llanmaes) is a small village on the island of Anglesey, Wales, located on the shore of the eastern entrance to the Menai Strait, the tidal waterway separating Anglesey from the north Wales coast. Its natural harbour made it an important medieval port and it was briefly the capital of the kingdom of Gwynedd. Following Prince Madoc's Rebellion, Edward I removed the Welsh population from the town and rebuilt the port a mile to the south at Beaumaris. It is in the community of Beaumaris.