A state of emergency has been declared in the tomato sector in Kaduna state, northern Nigeria, local media report.
A moth called the Tomato Leaf Miner, or Tuta Absoluta, has ravaged 80% of tomato farms, Commissioner of Agriculture Daniel Manzo Maigar said.
He said 200 farmers together lost at least 1bn naira ($5.1m; £3.5m) over the past month.
The price of a basket of tomatoes, has increased from $1.20 less than three months ago to more than $40 today.
Africa Live: BBC news updates
Most tomato production takes place in northern Nigeria, according to the UN.
A tomato paste manufacturing business in northern Kano state owned by Africa’s richest man, Aliko Dangote, suspended production earlier in the month due to the lack of tomatoes, reports Forbes.
Tomatoes are a basic part of most Nigerians’ diets and the word tomato has trended on Twitter as people discuss the rising price.
One of the memes being shared is a tongue-in-cheek look at Nigerian pain over discovering the annual festival in Spain where people throw tomatoes at each other.
Mr Maigar was reported as saying officials from the ministry of agriculture have gone to Kenya to meet experts on the Tomato Leaf Miner.