The coexistence of diagonal long-range order (DLRO) and off-diagonal long-range order (ODLRO), manifested in some systems, is still a theoretical enigma. Here, we present a novel microscopic mechanism for supersolidity or the homogeneous coexistence of charge-density-wave state (an example of DLRO) and superfluidity/superconductivity (a realization of ODLRO). We derive an effective d-dimensional Hamiltonian for a system of hard-core-bosons coupled to optical phonons in a lattice. At non-half-fillings, a superfluid/superconductor to a supersolid transition occurs at intermediate boson–phonon couplings, while at strong-couplings the system phase separates. We demonstrate explicitly that the presence of next-nearest-neighbor hopping and nearest-neighbor repulsion leads to supersolidity.