Understanding the dynamics of the African swine fever virus during periods of intense replication is critical for effective combatting of the rapid spread. In our research, we have developed a fractional-order SVEIR model using the Caputo derivatives to investigate this behaviour. We have established the existence and uniqueness of the solution through fixed point theory and determined the basic reproduction number using the next-generation matrix method. Our study also involves an examination of the local and global stability of disease-free equilibrium points. Additionally, we have conducted optimal control analysis with two control variables to increase the number of recovered pigs while reducing the number of those infected and exposed. We have supported our findings with numerical simulations to demonstrate the effectiveness of the control strategy.