<Tr> <Th> Website </Th> <Td> www.kylemaclachlan.com </Td> </Tr> <Tr> <Th_colspan="2"> Signature </Th> </Tr> <P> Kyle Merritt MacLachlan (/ məˈɡlɒklən /; born February 22, 1959) is an American actor . MacLachlan is best known for his role as Dale Cooper in Twin Peaks (1990--1991; 2017) and its film prequel Twin Peaks: Fire Walk with Me (1992), as well as roles in two of David Lynch's films: Paul Atreides in Dune (1984) and Jeffrey Beaumont in Blue Velvet (1986). MacLachlan's other film roles include Lloyd Gallagher in The Hidden (1987), Ray Manzarek in The Doors (1991), Clifford Vandercave in The Flintstones (1994), Zack Carey in Showgirls (1995), and the voice of Riley's dad in Inside Out (2015). </P> <P> He has had prominent roles in television shows including appearing as Trey MacDougal in Sex and the City (2000--2002), Orson Hodge in Desperate Housewives (2006--2012), The Captain in How I Met Your Mother (2010--2014), the Mayor of Portland in Portlandia (2011--2017), Josh Perotti in The Good Wife, and Calvin Zabo in Agents of S.H.I.E.L.D. (2014--2015). </P>

Who plays the captain in how i met your mother