"Markgraf" was ordered under the provisional name "Ersatz Weissenburg" and built at the AG Weser shipyard in Bremen under construction number 186.Her keel was laid in November 1911 and she was launched on 4 June 1913.