Install a chimney or vertical vent, use seasoned hardwoods only, let the fire get hot before adding more wood, don’t overload the pit, make sure there’s adequate airflow, and build your pit at least 15 feet from structures.
Avoid soft, wet woods that smolder and smoke heavily. Letting the flames establish before adding more wood is key to clean, smokeless burning.