It was created as a result of Robert the Bruce granting the cities Great Charter in 1319, after they sheltered him during his days of outlaw.
The document originated from Robert the Bruce's decision to grant the cities' charter in 1319, after they provided him with refuge during his period as a fugitive.