Digging holes. It'll depend where you do it but I think most regulative entities don't have explicit regulations on size or direction of excavations.
Same would probably go for heaping all that earth on a mound, I doubt a lot of places will have explicit building regulations on an earth mound