In an attempt to conform at least mildly to the tradition of legal continuity, Napoleon ordered his general Joachim Murat, Grand Duke of Berg, to convene in Bayonne a Cortes of thirty deputies chosen from among the notables of Spain to help draft and to approve the constitutional basis for the new regime. However, in the context of the Dos de Mayo Uprising in Madrid and various other uprisings elsewhere in Spain, only about a third of the invited Spanish notables attended. On 4 June 1808, Napoleon designated his brother Joseph as king of Spain; he was proclaimed king at Madrid on 25 July. The rump Cortes began meeting in Bayonne on 15 June to begin drafting a "constitution", for which Napoleon provided them with an extensive initial draft; it was promulgated July 8.