A Greek colony named Euesperides had existed in the area from around 525 BC. In the 3rd century BC, it was relocated and refounded as the Ptolemaic city of Berenice. Berenice prospered under the Romans, and after the 3rd century AD it superseded Cyrene and Barca as the centre of Cyrenaica. The city went into decline during the Byzantine period and had already been reduced to a small town before its conquest by the Arabs. In 1911, Italy captured Benghazi and the rest of Tripolitania from the Ottomans. Under Italian rule, Benghazi witnessed a period of extensive development and modernization, particularly in the second half of the 1930s. The city changed hands several times during World War II and was heavily damaged in the process. After the war Benghazi was rebuilt and became the co-capital of the newly independent Kingdom of Libya. Following the 1969 coup d'état by Muammar Gaddafi, Benghazi lost its capital status and all government offices relocated to Tripoli.