The Markt Schwaben–Erding railway is a 13.63 km-long branch line in Upper Bavaria in Germany and now part of line S 2 of the Munich S-Bahn.