We formulate an immuno-epidemiological model of coupled “within-host” model of ODEs and“between-host” model of ODE and PDE, using the Human Immunodeficiency Virus (HIV) forillustration. Existence and uniqueness of solution to the “between-host” model isestablished, and an explicit expression for the basic reproduction number of the“between-host” model derived. Stability of disease-free and endemic equilibria isinvestigated. An optimal control problem with drug-treatment control on the within-hostsystem is formulated and analyzed; these results are novel for optimal control of ODEslinked with such first order PDEs. Numerical simulations based on the forward-backwardsweep method are obtained.