In 1728, Quantz visitied Berlin. He met Crown Prince Frederick. He returned to Berlin two times a year to teach Prince Frederick the flute. When King August II died, Quantz stayed in Dresden until Prince Frederick became King of Prussia. Quantz moved to Berlin. He became a composer and flute player for King Frederick. Quantz did not write operas. Other composers in Frederick's court wrote operas.