Quantum entanglement is a crucial resource in many quantum information and quantum communication tasks. In this work, we present a quantum control methodology to create entangled states of two basic classes, the W and the GHZ. A chain of 87 Rb atoms in an optical lattice is considered interacting with laser pulses to induce two-photon excitations to Rydberg states having a specific magnetic quantum number. Generation of the W and GHZ three-atomic states is demonstrated via the mechanism of the two-photon adiabatic passage in collective states implying the overlapping chirped pulses and the interplay of the Rabi frequency with the one-photon detuning and the strength of the Rydberg-Rydberg interactions. Copyright © VBRI Press.