SAN FRANCISCO (AP) — Barry Bonds was indicted Thursday on perjury and obstruction of justice charges, culminating a four-year federal investigation into whether he lied under oath to a grand jury looking into steroid use by elite athletes.

The indictment came three months after the 43-year-old Bonds passed Hank Aaron to become baseball's career home run leader. Bonds parted ways with the San Francisco Giants after the season.

While Bonds was chasing Aaron, a grand jury was working behind closed doors to put the finishing touches on the long-rumored indictment.