Using zero-temperature Monte Carlo simulations we have studied the mag
netic hysteresis in a three-dimensional Ising model with nearest-neigh
bor exchange and dipolar interaction. The average magnetization of spi
ns located inside a sphere on a cubic lattice is determined as a funct
ion of magnetic field varied periodically. The simulations have justif
ied the appearance of hysteresis and allowed us to have a deeper insig
ht into the series of metastable states developed during this process.