The military had summoned, and in some cases detained, scores of political officials and other prominent figures after the May 22 coup, which the military carried out after months of unrest that had destabilized the elected government and caused outbursts of deadly violence in Bangkok.