Shortly after becoming King in Prussia, he attacked Austria and claimed Silesia during the Silesian Wars. Near the end of his life, Frederick united most of his separated parts of his kingdom through the First Partition of Poland.