Secret Bases are made in Sinnoh Underground. You can buy a Digger Drill from a person in the Underground for a Sphere and you use it to dig in a wall and make a Secret Base.
the secret base also stays in the same place everytime you enter and exit the underground. you can also destroy it and build one in a different location.