The nut that connects the trap to the straight section of pipe is called the tailpiece. To remove it, turn it clockwise. If it's plastic, you can often do this by hand, but if it's metal, use a pipe wrench or pliers.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.