Clean the surface thoroughly, remove any debris, and repair any major cracks or holes. For wood floors, a primer may be needed, and for concrete, a bonding agent might be required.