Question: who gets married at the end of how i met your mother
Answer: Cobie Smulders as Robin Scherbatsky , a news anchor who has on - again - off - again relationships with both Ted and Barney .