Question: What century was the castle that required repairs to the seat by John MacLeod of MacLeod first built?
Context: Dunvegan Castle is located 1 mi to the north of Dunvegan on the Isle of Skye, off the west coast of Scotland.  It is the seat of the MacLeod of MacLeod, chief of the Clan MacLeod.  Probably a fortified site from the earliest times, the castle was first built in the 13th century and developed piecemeal over the centuries.  In the 19th century the whole was remodelled in a mock-medieval style.  The castle is built on an elevated rock overlooking an inlet on the eastern shore of Loch Dunvegan, a sea loch. Roderick John MacLeod, Lord Minginish, {'1': ", '2': ", '3': ", '4': "} (Gaelic: "Ruairidh Iain MacLeòid"; born  1953 ), also known as Roddy John, is a Scottish solicitor and advocate.  Since 2014 he has been Chairman of the Scottish Land Court and President of the Lands Tribunal for Scotland.  He is the first Gaelic-speaking chair of the court. John MacLeod of MacLeod, born as John Wolrige-Gordon, (10 August 1935 – 12 February 2007) was the 29th chief of Clan MacLeod.  Faced with the need for expensive repairs to the clan's seat at Dunvegan Castle on the Isle of Skye, his proposed methods to raise funds caused considerable controversy.  His twin brother, Patrick Wolridge-Gordon (1935–2002), was MP for East Aberdeenshire. Milntown Castle was an early 16th-century castle which was situated near Milton, in Easter Ross, in the Scottish Highlands.  It was built by the Munro of Milntown family, a cadet branch of the Clan Munro.  In 1656, the castle and estate was sold to George Mackenzie, 1st Earl of Cromartie also known as George MacKenzie of Tarbet.  He renamed the estate New Tarbat after Tarbat Castle (now more commonly known as Ballone Castle), the family's original seat near Portmahomack.  Mackenzie had the Milntown Castle pulled down and only part of the basement survives.  He then replaced the castle with a new mansion built nearby.  When the new mansion was built, the old Milntown Castle was remodelled as part of the garden.  That mansion was itself demolished and in 1787 was replaced with a Georgian house (now known as Tarbat House) by his descendant John Mackenzie, Lord MacLeod. "Let the Heartaches Begin" is a song performed by British singer Long John Baldry.  The single was a number one hit in the UK Singles Chart on 22 November 1967 where it stayed for two weeks.  It was the second of two consecutive UK number one hits for the writing partnership of Tony Macaulay and John Macleod, the first being "Baby Now That I've Found You" by The Foundations.  Macaulay says of the recording session "Long John Baldry sings it extraordinarily well, thanks to three-quarters of a bottle of Courvoisier". HMS "Duncan" was a D-class destroyer leader built for the Royal Navy in the early 1930s.  The ship was initially assigned to the Mediterranean Fleet before she was transferred to the China Station in early 1935 where she remained until mid-1939.  "Duncan" returned to the Mediterranean Fleet just after World War II began in September 1939.  She was transferred to the Home Fleet in December 1939, although she was badly damaged in a collision the following month, and required repairs that lasted until July 1940.  The ship joined Force H at Gibraltar in October, escorting the larger ships and various convoys until March 1941 when she was transferred to West Africa for convoy escort duties for a few months.  "Duncan" rejoined the 13th Destroyer Flotilla at Gibraltar in July and escorted several convoys to Malta during the rest of the year.  After a refit, she briefly returned to the 13th Destroyer Flotilla before joining the Eastern Fleet in the Indian Ocean to participate in Operation Ironclad in May 1942.  The ship was recalled home to be converted into an escort destroyer in late 1942. The 1973–74 Phoenix Suns season was the sixth for the Phoenix Suns of the National Basketball Association.  It was the first of 14 seasons head coach John MacLeod spent with Phoenix.  The season would also be the last for former All-Star forward/center Connie Hawkins, traded to the Los Angeles Lakers after appearing in nine games for the Suns.  Charlie Scott would repeat as an All-Star, but who missed 30 games due to injury despite his NBA career-high 25.4 points a game.  The team went on to finish the season 30–52, a career-worst for MacLeod and the franchise's poorest record since their inaugural season. Wadsworth Chapel, also known as the Catholic-Protestant Chapels, is actually two separate chapels under one roof on the campus of the Dept. of Veterans Affairs Medical Center in West Los Angeles, California.  The structure was built in 1900 and was closed in 1971 after being damaged in the 1971 Sylmar earthquake.  It is the oldest building on Wilshire Boulevard and was listed in the National Register of Historic Places in 1972.  The structure has fallen into a state of disrepair due to the lack of funds within the Dept. of Veterans Affairs to pay for the required repairs and renovation. John MacLeod (born 20 February 1973) is a former rugby union player Born in Scotland, he played for the professional Glasgow provincial side now called Glasgow Warriors - in the 1996-97 season; the first season of professionalism in Scottish rugby union.  MacLeod played at the Fly-half position. MV "Logna" was built as general cargo ship in Bergens Mekaniske Verksted, Shipyard, Norway in 1957.  She transported cargo between Norway and Spain until 1969, when she was acquired by the Bahama Cement Company.  In 1970 she was converted to a bulk cement carrier and she was renamed MV "Island Cement".  She was used to ship bulk cement between Freeport, Bahamas Fort Pierce, Port Canaveral, and Fort Lauderdale, Florida, and to Eleuthera and New Providence in the Bahamas.  In 1980 the Company conducted an underwater survey and determined that it was not economical to perform required repairs.  Instead, the ship was decommissioned and the company planned to sell her for scrap.
Answer: 13th century