Ogle County is a county in the northern part of the U.S. state of Illinois. According to the 2020 United States Census, it had a population of 51,788. Its county seat is Oregon, and its largest city is Rochelle.