Mahler worked very hard at it, composing it in quite a short time at Maiernigg in southern Austria in the summer of 1906. It was the last of Mahler's works that was to be given its first performance in his lifetime. The symphony was given its first performance in Munich on 12 September 1910.