A foldable ladder for providing access to an opening including: a first motorized drive mechanism for moving a cover for the opening between a closed position and an open position; a second motorized drive mechanism coupled to a plurality of foldable ladder portions for moving the ladder portions between a folded configuration and an unfolded configuration; such that, in moving the cover between the closed and an open position, the first motorized drive mechanism triggers the second motorized drive mechanism to move the ladder portions between the folded configuration and unfolded configuration.