The word for pepper in Spanish is pimienta. This refers to both the vegetable and the spice. Although, with the spice, you would say, pimienta negra (black pepper).