Answer : The static friction depends on two factors
1. Roughness of the surface
2. Force
Explanation : Friction occur when surface is not smooth.
The formula of friction is

Static friction depends on the roughness of the surface and force which is trying to push to object along the surface.
Static friction is caused by the attraction between two surfaces that are in contact. when the surface will rough and the object will heavier then the force will be larger.