Of course, a franchisee can sell their business. They are the owner. However, the franchisor will want to be involved in the process by selecting the buyer, just as they selected the current seller. Otherwise, unwanted franchisees could be allowed to sneak in.
The steps to be taken must be specified in the franchise agreement. Typically, there will be a notice period so that the franchisor can exercise their right of first refusal, a selection process, and a final decision, which could be negative if the franchisor finds justifiable reasons for not considering the prospective buyer suitable.
This possibility often leads franchisees to believe that the franchisor can use this tactic to effectively prevent sales. This shouldn't be the case, nor is it usually, because the franchisor has no interest in systematically blocking sales and keeping a franchisee in the network who will become problematic, when they have the option of bringing in a much more motivated one, if they truly deem it suitable.





