Abeokuta is the largest city and state capital of Ogun State in southwest Nigeria. It is situated on the east bank of the Ogun River, near a group of rocky outcrops in a wooded savanna; 77 kilometres (48 mi) north of Lagos by railway, or 130 kilometres (81 mi) by water. As of 2005, Abeokuta and the surrounding area had a population of 593,140.