Cardiff City
On 2 July 2009, Hudson signed for Championship side Cardiff City for a fee of £1.075m with an extra £250,000 possible if the Bluebirds reached the Premier League. An ongoing contract dispute with midfielder Joe Ledley led manager Dave Jones to hand the captaincy to Hudson at the start of the season, Cardiff becoming the third successive club at which he had been appointed captain.
Hudson made his Cardiff debut in a 4–0 win over Scunthorpe United in the opening game of the season. He quickly established himself in the starting eleven, in the centre–back position, alongside Anthony Gerrard and Gábor Gyepes. Hudson scored an own goal in a 1–1 draw against his former club Crystal Palace on 17 October 2009 before scoring his first goal for the club three weeks later during a 3–2 defeat to local rivals Swansea City. He made his two-hundredth career league appearance on Boxing Day against Plymouth Argyle and added his second goal of the season on 9 January 2010 against Blackpool. However, his season was dealt a blow when he was ruled out for up to two months after being forced to undergo surgery on a split ankle tendon at the end of January. After three months on the sidelines, he made his return for the first team, coming on as a second-half replacement for Darcy Blake, in a 3–2 win over Sheffield Wednesday on 24 April 2010. Hudson featured in the play-offs where Cardiff lost 3–2 to Blackpool in the final. He finished his first season, making 33 appearances and scoring 2 times in all competitions.
At the start of the 2010–11 season, loan signing Craig Bellamy was appointed team captain, with Hudson maintaining the role of club captain. He was ever-present from the start of the 2010–11 season until 19 March 2011, when he suffered a knee injury in a 3–3 draw with Millwall which ruled him out for up to six weeks. Despite reports claiming Hudson would be out for the season, he returned in Cardiff's 1–0 victory over Preston North End on 25 April. He started the final game of the season against Burnley but was taken off with another injury after 30 minutes. Again reports of Hudson's season being in doubt were proven wrong as he was cleared for the first leg of Cardiff's second consecutive play-off participation. Cardiff drew the first match against Reading 0–0 at the Madjeski Stadium, before losing 3–0 in the return leg.
Under new manager Malky Mackay, Hudson regained the captaincy for the 2011–12 season following the end of Bellamy's loan deal and led the team to a 1–0 win over West Ham United in the opening match. His first goal of the season came in a Severnside derby on 14 August 2011 against Bristol City. Hudson made his 250th league appearance on 27 August against Portsmouth. A small hamstring injury meant he missed two matches, but he returned on 4 December coming on for Gerrard against Birmingham City. His 100th appearance for Cardiff came on 2 January 2012 against Reading, whilst also making his three-hundredth club appearance. On 13 January 2012, Hudson signed a two-year contract extension, keeping him in the Welsh capital until 2014. He suffered an ankle injury in January 2012, but returned to captain the side in its first ever League Cup final against Liverpool, in which the Bluebirds were beaten 3–2 on penalties. On 17 April 2012, he scored his fifth goal of the season from 68 yards out against Derby County, a goal which was later voted the club's Goal of the Season. After helping the side qualify for the play–offs, Hudson played both legs against West Ham United, which saw Cardiff City lose 5–0 on aggregate, ending their season and their hopes of reaching to the Premier League. As a result, Hudson was rated one of the most consistent Bluebirds players in the 2011–12 season.
At the start of the 2012–13 season, Hudson remained as the captain, even after the return signing of Bellamy. Hudson got the Football League's first goal of the 2012–13 season, scoring a late winner against Huddersfield Town on 17 August 2012. After the departure of Gerrard, he formed a central defensive partnership with either Ben Turner or Matthew Connolly. Hudson soon came under criticism from Nathan Blake for his performance during a 5–4 defeat to Charlton Athletic on 6 November 2012. However, he was able to redeem himself when he scored against Hull City and was named Man of the Match, being praised by his teammate Turner, who described him as the "player of the season". Despite serving a one match suspension after picking up a fifth booking of the season during a match against Blackburn Rovers, Hudson was nominated for December's Championship Player of the Month but lost out to Peterborough United's Dwight Gayle. Hudson made his three-hundredth career league start at Blackpool in a 2–1 victory on 19 January. In March, Hudson was forced to undergo ankle surgery and was ruled out for the rest of the season. Despite Mackay's hopes of Hudson returning from injury again, it never happened. Hudson lifted the Championship trophy following the 1–1 home draw with Bolton Wanderers at Cardiff City Stadium in May. At the end of the 2012–13 season, Hudson was named PFA Team of the Year, along with Peter Whittingham, as well as winning Cardiff City's Player of the Year. He described winning the league was the 'best moment of his career'.
Ahead of the 2013–14 season, Hudson extended his deal by a further year until the summer of 2015 and retained his captaincy for the side. Despite expecting to lead the side in the Premier League, Hudson, however, spent the start of the season on the substitute bench, due to Mackay's preference of Steven Caulker and Turner in the centre–back position. He made his first appearance of the 2013–14 season in a 2–0 win over Accrington Stanley in the first round of League Cup. Under Ole Gunnar Solskjær, Mackay's successor, he played his first Premier League match since 2005 in a 2–0 loss against West Ham United on 11 January 2014. He made a second Premier League appearance in a 2–0 loss against Manchester United on 28 January 2014, but suffered a hamstring injury and was ruled out for the rest of the season.
Ahead of the 2014–15 season, Hudson's future at Cardiff was in doubt following their relegation from the Premier League. He managed to recover from a hamstring injury, in time for the opening game of the season against Blackburn Rovers, in which he set up Cardiff's goal in a 1–1 draw. After making three appearances for the side, the club announced his departure to Huddersfield Town on the last day of the transfer window. His departure came after new signing, Bruno Ecuele Manga arrived from FC Lorient. Later, Hudson was critical towards Solskjær over the way he handled his departure. By the time he departed the club, Hudson was considered a cult hero with fans.