We propose an effective scheme of shortcuts to adiabaticity for generating a three-dimensional entanglement of two atoms trapped in a cavity using the transitionless quantum driving (TQD) approach.