The needle used in thoracentesis is inserted into the ribs in the back to enter the pleural space, which is the space between the chest wall and lung covering called the pleura. The other side of the needle is connected to the tubing for fluid drainage.