An in ground oil tank is not illegal. The concern is that if it leaks, you will have an environmental clean-up issue. If your tank contaminates the ground with oil spillage, it is very costly to rectify. That is why people steer clear of them. The tank can be pressure tested for leakage, but that risks causing a leak in an older tank that might have broken time over time.