Solar radiation plus oxygen molecules create ozone. Inside oxygen isn't exposed to enough.
Lightning DC can create ozone, called Corona discharge. Spark gap will do it. UV ozone generator is the other way. So we can practically demonstrate UV generation.