A connection mechanism is used for detachably installing a carrier device to a supporting device. The connection mechanism includes a first base, fixed on the supporting device, a second base, fixed on the carrier device and detachably connected to the first base, a latch, movably disposed on the second base and corresponding to the first base, and an operating component, disposed on the second base and operably connected to the latch. The operating component selectively drives the latch to move to a locking position so that the second base is locked to the first base, or drives the latch to move to an unlocking position so that the second base is unlocked from the first base.