When and how did Scotland originate?

Im not sure when exactly but basically there was loads of different tribe thingys and they combined forces and became Scotland.