A vehicle door opening and closing apparatus includes: a vehicle door; a rail mounted on a vehicle body; and a roller unit mounted on the vehicle door, and configured to move along the rail, where the roller unit allows the vehicle door to open and close in either a sliding mode, in which the vehicle door slides along the rail, or a swing mode, in which the vehicle door swings in a predetermined position of the rail.