Both state and federal registrations protect your trademark from competitors using a similar trademark for similar goods or services. State trademark protection is limited to the state of registration, whereas a federal registration protects your trademark throughout the US. The costs and procedural hurdles are lower for a state registration than for a federal one.