On March 24, 2021, Governor Gavin Newsom announced that he would be appointing Bonta as Attorney General of California to replace Xavier Becerra. He was sworn-in on April 23, 2021 and became the first Asian-American man (second overall after Kamala Harris) to be California Attorney General.