Who controlled the government of of prussia?

In 1701, Frederick William III, crowned himself as king and controller of the government of Prussia. In 1740, Frederick William II took over and when he died the family continued to control the throne with various nephews.