There's a couple ways, actually.
In WW2, there was an experiment to make planes "invisible". It involved placing powerful lights on the front, to blind enemies. It worked, but the lights were too heavy and fragile for combat.
There have been modern experiments using cameras and screens, to film the surrounding area and project it on screens mounted on whatever is trying to be "invisible".
Of course, there's always just camouflaging it.