The oil filter on a 1999 Mazda B2500 pickup truck is located near the bottom of the engine, slightly behind the middle. It is positioned just above the oil pan and to the left of the engine block. The oil filter is cylindrical in shape and about the size of a large beverage can.
To access it, you will likely need to crawl underneath the vehicle.