 Mason City also is served by the Canadian Pacific Railway and Union Pacific Railroad.The Canadian Pacific track is part of its US subsidiary the Dakota, Minnesota and Eastern Railroad ( former I&M Rail Link and Milwaukee Road trackage.The Union Pacific's track was inherited from the Chicago and North Western Transportation Company when it bought it in the 1990s.